package main.java.FSMDE.infrastructure.visual;


import javax.swing.tree.DefaultMutableTreeNode;

import main.java.FSMDE.models.Interface;


public class InterfaceTreeNode extends DefaultMutableTreeNode{

	private static final long serialVersionUID = 1L;
	private Interface interFace;

    public InterfaceTreeNode(Interface interf) {
        this.interFace = interf;
    }

    public Interface getComponent() {
        return this.interFace;
    }

    @Override
    public String toString() {
        return interFace.getName();
    }
}
